import "package:flutter/material.dart";

// 最新欧气盲盒推荐
class NewLuckyBoxWidget extends StatelessWidget {
  const NewLuckyBoxWidget({super.key});
  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.only(left: 3),
      child: AspectRatio(
        aspectRatio: 4 / 3,
        child: ClipRRect(
          borderRadius: BorderRadius.circular(6),
          child: Container(
            alignment: Alignment.center,
            child: Container(
              padding: const EdgeInsets.all(6),
              decoration: const BoxDecoration(
                gradient: LinearGradient(
                  begin: Alignment.topLeft,
                  end: Alignment.bottomRight,
                  colors: [
                    Color.fromARGB(255, 252, 236, 255),
                    Color.fromARGB(255, 208, 228, 255),
                  ],
                ),
              ),
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: [
                  Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      const Column(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text(
                            '欧气盲盒',
                            maxLines: 1,
                            overflow: TextOverflow.ellipsis,
                            style: TextStyle(
                              color: Color.fromARGB(255, 135, 39, 176),
                              fontSize: 11,
                              fontWeight: FontWeight.bold,
                            ),
                          ),
                          Text(
                            '最低3元起',
                            maxLines: 1,
                            overflow: TextOverflow.ellipsis,
                            style: TextStyle(
                                color: Color.fromARGB(197, 0, 0, 0),
                                fontSize: 9,
                                fontWeight: FontWeight.w300),
                          ),
                        ],
                      ),
                      Column(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          const Text(
                            '3魔晶',
                            maxLines: 1,
                            overflow: TextOverflow.ellipsis,
                            style: TextStyle(
                                fontWeight: FontWeight.bold,
                                fontSize: 11,
                                color: Color.fromARGB(255, 78, 56, 78)),
                          ),
                          const Text(
                            '待签到',
                            maxLines: 1,
                            overflow: TextOverflow.ellipsis,
                            style: TextStyle(
                                fontWeight: FontWeight.w600,
                                fontSize: 11,
                                color: Color.fromARGB(255, 78, 56, 78)),
                          ),
                          Row(
                            mainAxisAlignment: MainAxisAlignment.center,
                            crossAxisAlignment: CrossAxisAlignment.center,
                            children: [
                              Container(
                                  margin: const EdgeInsets.only(top: 4),
                                  padding: const EdgeInsets.only(
                                      left: 5, top: 1, bottom: 1),
                                  decoration: BoxDecoration(
                                    borderRadius: BorderRadius.circular(12),
                                    gradient: const LinearGradient(
                                      begin: Alignment.centerLeft,
                                      end: Alignment.centerRight,
                                      colors: [
                                        Color.fromARGB(255, 255, 169, 236),
                                        Color.fromARGB(255, 183, 144, 230)
                                      ],
                                    ),
                                  ),
                                  child: const Row(
                                    children: [
                                      Text(
                                        '去看看',
                                        style: TextStyle(
                                            fontSize: 10, color: Colors.white),
                                      ),
                                      Icon(
                                        Icons.keyboard_arrow_right,
                                        size: 16,
                                        color: Colors.white,
                                      )
                                    ],
                                  )),
                            ],
                          )
                        ],
                      ),
                    ],
                  ),
                  AspectRatio(
                    aspectRatio: 4 / 5,
                    child: Container(
                      margin: const EdgeInsets.only(left: 6),
                      padding: const EdgeInsets.all(6),
                      decoration: BoxDecoration(
                        color: Colors.white,
                        borderRadius: BorderRadius.circular(4),
                      ),
                      child: Column(
                        children: [
                          Expanded(
                            flex: 1,
                            child: Image.asset(
                              "./images/2.jpg",
                            ),
                          ),
                          const Padding(
                            padding: EdgeInsets.only(top: 2),
                            child: Text(
                              '¥ 15一抽',
                              style: TextStyle(
                                color: Colors.purple,
                                fontSize: 9,
                              ),
                            ),
                          )
                        ],
                      ),
                    ),
                  )
                ],
              ),
            ),
          ),
        ),
      ),
    );
  }
}
